<?php

/*
|--------------------------------------------------------------------------
| Admin Routes
|--------------------------------------------------------------------------
|
| This file is where you may override any of the routes that are included
| with Voyager.
|
*/

Route::group(['as' => 'set.','prefix'=>'admin'], function () {

    $namespacePrefix = '\\App\\Admin\\Controllers\\Sets\\';


    Route::group(['middleware' => ['admin.user']], function () use ($namespacePrefix) {

        Route::get('settings/log', ['uses' => $namespacePrefix . 'LogController@index', 'as' => 'log']);
        Route::get('settings', ['uses' => $namespacePrefix . 'SetController@index', 'as' => 'index']);
        Route::post('settings/edit', ['uses' => $namespacePrefix . 'SetController@edit', 'as' => 'edit']);

    });

});
